package org.jeecg.modules.wlhy.invoiceinfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.wlhy.invoiceinfo.entity.HyInvoiceInfo;
import org.jeecg.modules.wlhy.invoiceinfo.mapper.HyInvoiceInfoMapper;
import org.jeecg.modules.wlhy.invoiceinfo.service.IHyInvoiceInfoService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 开票信息管理
 * @Author: jeecg-boot
 * @Date:   2021-05-24
 * @Version: V1.0
 */
@Service
public class HyInvoiceInfoServiceImpl extends ServiceImpl<HyInvoiceInfoMapper, HyInvoiceInfo> implements IHyInvoiceInfoService {
    @Override
    public HyInvoiceInfo getByOwnerId(String ownerId){
        QueryWrapper<HyInvoiceInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("owner_id", ownerId);
        return this.getOne(queryWrapper);
    }


}
